package services

import (
	"system_go/dao"
	"system_go/models"
)

func GetAllPets(petsParam map[string]interface{}) (error, []models.Pet, int64) {
	err, petsData, total := dao.GetAllPets(petsParam)
	return err, petsData, total
}

func DelPets(id string) error {
	err := dao.DelPets(id)
	return err
}

func UpdatePets(pets models.Pet) error {
	err := dao.UpdatePets(pets)
	return err
}

func AddPets(pets models.Pet) error {
	err := dao.AddPets(pets)
	return err
}
